package cvar.model;

import static java.lang.Math.sqrt;

import java.util.Random;

public class Sampler {
  
  private double[] original;

  public Sampler(double[] asList) {
    original = asList;
  }
  
  public double[] generate() {
    double[] result = new double[original.length];
    Random random = new Random(System.currentTimeMillis());
    for (int i = 0; i < result.length; ++i) {
      result[i] = original[i] + random.nextGaussian() / sqrt(10);
    }
    return result ;
  }

}
